package cn.xuqiudong.rpc.common.constants;

import cn.xuqiudong.rpc.protocol.netty.model.NettyHeader;

/**
 * 描述:
 * @author Vic.xu
 * @date 2022-02-14 11:46
 */
public final class XqdConstants {

    /**
     * 默认的SPI扩展点配置所在文件夹
     */
    public static final String SPI_EXTENSION_DIRECTORY = "META-INF/xqd/";

    /**
     * 路径分隔符
     */
    public static String PATH_SEPARATOR = "/";

    public static String PROTOCOL_SEPARATOR = "://";

    /**
     * zookeeper默认的根节点
     */
    public final static String ROOT_PATH = "/xqd";

    public final static String PROVIDERS = "providers";

    /**
     * netty 传输的数据头的长度 {@link NettyHeader}
     */
    public final static int HEAD_TOTAL_LEN = 16;

    /**
     * netty 传输的数据头中的魔数
     */
    public final static short MAGIC=0xff;


}
